<?php
/**
 * Entrance document
 *
 * @author Fakis Chan <fakis738@gmail.com>
 * @link http://www.woosize.com/
 * @version $Id: index.php 2012-11-01 01:29:03Z fakis $
 * @since 1.0
 */
require(dirname(__FILE__). DIRECTORY_SEPARATOR. 'framework'. DIRECTORY_SEPARATOR. 'Woosize.php');
require('Snoopy.class.php');
require('simple_html_dom.php');

$db = new CDbConnection('mysql://root:root@localhost/test');


$s = new Snoopy();
$s->host = "affiliate.soobest.com";
$s->agent = "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.13 (KHTML, like Gecko) Chrome/24.0.1290.1 Safari/537.13";
$s->accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
$s->fetch('http://affiliate.soobest.com');
$result = $s->results;
print_r($result);

print_r($_SERVER);
